package com.tmsps.ne4weixin.bean.message.send;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.tmsps.ne4weixin.annotation.XStreamCDATA;
import com.tmsps.ne4weixin.bean.message.event.BaseEvent;
import com.tmsps.ne4weixin.bean.message.receive.InBaseMessage;
import com.tmsps.ne4weixin.bean.message.send.vo.Image;
import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;

import lombok.Getter;
import lombok.Setter;

/**
 * @Title: ImageMessage.java
 * @Package: com.tmsps.ne4weixin.bean
 * @Description: 被动回复用户消息-回复图片消息
 * @author: hanjiefei
 * @date: 2019-10-18
 * @version V1.0
 * @Copyright: 2019
 */
@XStreamAlias("xml")
@Getter
@Setter
public class OutImageMessage extends OutBaseMessage {

	@XStreamCDATA(join = true)
	@XStreamAlias("Image")
	private Image image;

	public OutImageMessage(String mediaId) {
		super(MsgTypeEnum.IMAGE);
		this.image = new Image(mediaId);
	}

	public OutImageMessage(InBaseMessage message) {
		super(message, MsgTypeEnum.IMAGE);
	}

	public OutImageMessage(BaseEvent event) {
		super(event, MsgTypeEnum.IMAGE);
	}
}
